package com.tansun.easycare.rule.table.decisiontable.model;

import java.io.Serializable;
import java.util.List;


/**
 * 决策表行信息
 *
 * @author Lph
 */
public class DecisionTableRow implements Comparable, Serializable {
    /**
     *
     */
    private static final long serialVersionUID = 709024010556887943L;
    private Integer rowIndex;
    /**
     * 决策表行信息
     */
    private List<DecisionTableItem> rowItems;

    public List<DecisionTableItem> getRowItems() {
        return rowItems;
    }

    public void setRowItems(List<DecisionTableItem> rowItems) {
        this.rowItems = rowItems;
    }

    public Integer getRowIndex() {
        return rowIndex;
    }

    public void setRowIndex(Integer rowIndex) {
        this.rowIndex = rowIndex;
    }

    @Override
    public int compareTo(Object o) {
        // TODO Auto-generated method stub
        DecisionTableRow obj = (DecisionTableRow) o;
        return this.rowIndex.compareTo(obj.getRowIndex());
    }
}